import Vue from 'vue'
import VueRouter from 'vue-router'
// import Main from '../views/Main.vue'

Vue.use(VueRouter)

const routes = [
    {
        path:"/",
        name:"Main",
        component:()=> import('../views/Main.vue'),
        children:[
            {
                path:"/",
                name:"home",
                component:()=>import("../views/Home/Home.vue")
            }
        ]
    },
    {
        path:"/about",
        name:'About',
        component:()=> import('../views/About.vue')
    }
]
const router = new VueRouter({
    mode:"history",
    base:process.env.BASE_URL,
    routes
})

export default router